package cn.wolfcode.shop.service;

import cn.wolfcode.shop.domain.PropertyValue;
import cn.wolfcode.shop.domain.SkuPropertyValue;

import java.util.List;

/**
 * Created by wolfcode on 2018/8/17.
 */
public interface ISkuPropertyValueService {
    /**
     * 根据属性id获取该属性值的集合
     * @param skuPropertyId
     * @return
     */
    List<SkuPropertyValue> queryBySkuPropertyId(Long skuPropertyId);

    /**
     * 批量修改和保存属性值
     * @param skuPropertyValueList
     */
    void saveOrUpdateBatch(List<SkuPropertyValue> skuPropertyValueList);

    /**
     * 删除属性值
     * @param skuPropertyValueId
     */
    void delete(Long skuPropertyValueId);
}
